package com.turbo.cloud.ums.web.webservice;

import com.turbo.cloud.core.api.R;
import com.turbo.cloud.core.api.Result;
import com.turbo.cloud.ums.web.logic.InitLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 初始化接口 前端控制器
 * </p>
 *
 * @author zhangluning
 */
@RequiredArgsConstructor
@RestController
public class InitController {

    final InitLogic initLogic;

    /**
     * 初始化接口配置
     *
     */
    @GetMapping(name = "初始化接口配置", value = "/interface/api/initApi")
    public Result<Boolean> initApis() {
        boolean result = initLogic.initApis();
        return R.result(result);
    }
}
